# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/glc-player/glc-player-1.6.0.ebuild,v 1.1 2008/09/20 18:51:19 Exp $

EAPI=1

inherit eutils qt4

DESCRIPTION="GLC_Player is an Open Source software used to view 3d models (OBJ 3DS STL OFF Format)."
HOMEPAGE="http://www.glc-player.net/"
SRC_URI="mirror://sourceforge/glc-player/GLC_Player_src_${PV}.zip"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"

IUSE=""

DEPEND="|| ( ( x11-libs/qt-core x11-libs/qt-gui x11-libs/qt-opengl )
                =x11-libs/qt-4.3*:4 
                media-libs/glc-lib )"

S=${WORKDIR}/GLC_Player_src_${PV}

src_compile() {
        eqmake4 glc_player.pro
        emake || die "emake failed"
}

src_install() {
        dobin glc_player
        #dodoc COPYING README
        #emake INSTALL_ROOT="${D}" install || die "emake install failed"
}
